package com.yunyao.dao.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 零星订单材料表
 * </p>
 *
 * @author xingjishuai
 * @since 2024-07-02
 */
@Getter
@Setter
@TableName("bamu_retail_order")
public class BamuRetailOrder {

    /**
     * 主键ID
     */
    private String id;

    /**
     * 销售订单ID
     */
    private String contractId;

    private String contractName;

    private String customerId;

    private String customerName;

    private String supplierCategoryId;

    private String supplierCategoryName;

    private String supplierId;

    private String supplierName;

    private String supplierCode;

    /**
     * 供应商联系人
     */
    private String supplierContactName;

    /**
     * 供应商联系电话
     */
    private String supplierContactPhone;

    private String purchaseId;

    private String purchaseName;

    private String purchaseCode;

    private String projectId;

    private String projectName;

    private String projectAddress;

    /**
     * 材料ID
     */
    private String orderSn;

    /**
     * 材料编码
     */
    private String orderName;

    private String orderProcess;

    private String orderDesc;

    private String attachFiles;

    /**
     * 收货时间
     */
    private String receivingTime;

    private String orderStatus;

    /**
     * 含税价格
     */
    private BigDecimal taxTotalPrice;

    /**
     * 不含税价格
     */
    private BigDecimal notaxTotalPrice;

    private String shipmentAt;

    private String shipmentUserId;

    private String shipmentUserName;

    private String shipmentDesc;

    private String shipmentAttachs;

    private String shipmentFiles;

    private String takeAt;

    private String takeUserId;

    private String takeUserName;

    private String takeDesc;

    private String takeAttachs;

    private String takeFiles;

    private String isMembership;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建部门
     */
    private String createDept;

    /**
     * 修改时间
     */
    private Date updatedAt;

    /**
     * 修改人
     */
    private String updatedBy;

    /**
     * 业务状态 1:正常
     */
    @TableField("`status`")
    private Integer status;

    /**
     * 数据删除状态0:未删除,1:删除
     */
    private Integer isDeleted;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private String tenantId;

    /**
     * 流程审批状态
     */
    private String auditStatus;

    /**
     * 流程实例ID
     */
    private String processInstanceId;

    /**
     * 流程设计模板信息ID
     */
    private String modelSchemeInfoId;

    /**
     * 流程部署ID
     */
    private String deploymentId;

    /**
     * 流程版本
     */
    private String processVersion;

    /**
     * 供货状态0未发起供货 1待供货 2供货完成 3供货延迟 4 验收中 5、验收完成
     */
    private Integer supplyStatus;

    /**
     * 价格类型 0锁定 1浮动
     */
    private String priceType;

    /**
     * 价格备注
     */
    private String priceTypeMark;

    /**
     * 项目对账状态 0 待对账 1 对账中 2对账完成
     */
    private String projectReconciliationStatus;

    /**
     * 供应商对账状态 0 待对账 1 对账中 2对账完成
     */
    private String customerReconciliationStatus;

    /**
     * 采购销售订单ID
     */
    private String saleContractId;

    /**
     * 销售合同名称
     */
    private String saleContractName;

    /**
     * 采购销售订单的含税总金额
     */
    private BigDecimal saleContractTaxTotalPrice;

    /**
     * 基准价格
     */
    private BigDecimal basePrice;

    /**
     * 涨幅价格
     */
    private BigDecimal increasePrice;

    /**
     * 涨幅比例
     */
    private BigDecimal increaseRate;

    /**
     * 联系人
     */
    private String contactName;

    /**
     * 联系电话
     */
    private String contactMobile;

    /**
     * 联系邮箱
     */
    private String contactEmail;

    /**
     * 联系地址
     */
    private String contactAddress;

    /**
     * 铜价
     */
    private BigDecimal copperPrice;

    /**
     * 铜价日期
     */
    private Date copperDate;

    /**
     * 铜价修改人Id
     */
    private String copperUpdatePersonId;

    /**
     * 铜价修改人名称
     */
    private String copperUpdatePersonName;

    /**
     * 铜价系数
     */
    private BigDecimal copperCoefficient;

    /**
     * 销售订单方式0电线电缆及光纤光缆 1 电梯及扶梯
     */
    private String contractMethod;

    /**
     * 付款方式json
     */
    private String paymentMethod;

    /**
     * 云采项目确认 0=否 1=是
     */
    private Integer projectFolwableStatus;
}
